$(function(){
	$("#saveGroupInfo").click(function(){
		var groupName = $("#groupName").val();
		if(!groupName){
			eDialog.alert('请填写组名');
			return;
		}
		var remark = $("#remark").val();
		if(!remark){
			eDialog.alert('请填写备注');
			return;
		}
		$.ajax({
			url: GLOBAL.WEBROOT+"/sendGroup/saveGroup",
	        data:{
	        	groupName:groupName,
	        	remark:remark
	        },
	        type:"post",
	        dataType:"json",
	        async:true,
		    cache:true,
	        success: function (data){
	        	window.top.location.href =WEB_ROOT+"/sendGroup/init";
	        },
	        error:function(XMLHttpRequest, textStatus, errorThrown){
	        	
	        }
		});
	});
});